/* -*- Mode: C;  tab-width: 4;  indent-tabs-mode: dunto;  c-basic-offset: 4 -*-
*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software;  you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation;  either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY;  without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program;  if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

#ifndef CONFIG_H
#define CONFIG_H

#include <QString>

#define BluetoothServiceExePath "/usr/bin/bluetoothService -o"
#define BluetoothTrayExePath    "/usr/bin/ukui-bluetooth"
#define BluetoothServiceName    "bluetoothService"
#define BluetoothTrayName       "ukui-bluetooth"

#define SYSTEMSTYLESCHEMA "org.ukui.style"
#define SYSTEMSTYLENAME "styleName"
#define SYSTEMFONTSIZE  "systemFontSize"
#define SYSTEMFONT      "systemFont"

#define MAX_DEVICE_CONECTIONS_TIMES 3

#define DELAYED_SCANNING_TIME_S                 (2*1000)
#define DEVICE_CONNECTION_TIMEOUT_S             (30*1000)
#define LOADING_ICON_TIMEOUT_INTERVAL_MS        (110)
#define NO_DEV_ADD_SIGNAL_DETECTION_INTERVAL    (5*1000)

#define TRANSPARENCY_SETTINGS       "org.ukui.control-center.personalise"
#define TRANSPARENCY_KEY            "transparency"

#define GSETTING_UKUI_STYLE "org.ukui.style"
#define GSETTING_SCHEMA_UKCC "org.ukui.control-center.plugins"
#define GSETTING_PACH_UKCC "/org/ukui/control-center/plugins/Bluetooth/"

#define DBUSSERVICE     "com.ukui.bluetooth"
#define DBUSPATH        "/com/ukui/bluetooth"
#define DBUSINTERFACE   "com.ukui.bluetooth"

#define TITLE_ICON_BLUETOOTH "bluetooth"


const QString SERVICE   = "com.ukui.bluetooth";
const QString PATH      = "/com/ukui/bluetooth";
const QString INTERFACE = "com.ukui.bluetooth";

enum Environment
{
    NOMAL = 0,
    HUAWEI,
    LAIKA,
    MAVIS
};

extern Environment envPC;
#endif // CONFIG_H
